<?php

use \App\HttpController\Router;

//管理后台
Router::group(['prefix'=>'manage','namespace'=>'Admin'],function (){
    //登录部分
    Router::post('login', 'LoginController/login');
    Router::get('captcha', 'LoginController/captcha');
    //首页
    Router::get('', 'IndexController');
    //登录日志
    Router::group(['prefix'=>'log'],function (){
        Router::get('login', 'LogsController/login');
        Router::get('handle', 'LogsController/handle');
    });
    //管理人员
    Router::group(['prefix'=>'operate'],function (){
        Router::get('', 'OperateController');
        Router::post('update', 'OperateController/update');
        Router::post('destroy', 'OperateController/destroy');
    });
    //角色
    Router::group(['prefix'=>'role'],function (){
        Router::get('', 'RoleController');
        Router::post('update', 'RoleController/update');
        Router::post('destroy', 'RoleController/destroy');
        Router::post('status', 'RoleController/status');
        Router::get('access', 'RoleController/access');
        Router::post('store', 'RoleController/store');
    });
});
